<?php
 session_start();
require_once("bdd.php");

if( isset($_POST['supprimer'])  ) {



if( isset($_POST['supprimer']) ) {

	$supprims = $_POST['supprimer'];
} else {
	$supprims = Array();
}



	foreach($supprims as $selectValue){	
		
			$connexion->exec("DELETE FROM picto WHERE idpicto=".$selectValue."");
		
	}

			
					
} 

	 $hostAccueil  = $_SERVER['HTTP_HOST'];
	  $url = '/compte.php';
 header("Location: http://$hostAccueil$url");


?>